{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 代码目的\n",
    "\n",
    "将所有数据按照字向量整理成numpy的格式，存储在/data中"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-12-11T06:23:15.214277Z",
     "start_time": "2020-12-11T06:23:15.212047Z"
    }
   },
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import os"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-12-11T06:23:17.350752Z",
     "start_time": "2020-12-11T06:23:17.343490Z"
    }
   },
   "outputs": [],
   "source": [
    "def pos_embed(x, maxlen):\n",
    "    \"\"\"\n",
    "    针对每一个句子，以每一个字相对实体的位置做 embedding\n",
    "    这里pos_embed的作用是，通过固定长度fixlen，计算每个字到实体字的距离，并加上61，变为正数，返回范围确定在1-121；\n",
    "    距离大于60的，返回的范围为0和122。如果一个句子很长，则最终返回的序列为：【0,0,0,1,2,3,...,120,121,122,122,122】\n",
    "    两个实体可能表达会更复杂\n",
    "    \"\"\"\n",
    "    if x < -maxlen:\n",
    "        return 0\n",
    "    elif -maxlen <= x <= maxlen:\n",
    "        return x + maxlen + 1\n",
    "    elif x > maxlen:\n",
    "        return 1 + maxlen + maxlen + 1\n",
    "\n",
    "\n",
    "def find_index(x, y):\n",
    "    \"\"\"\n",
    "    找到实体词在字符串中的index；找不到就返回-1\n",
    "    \"\"\"\n",
    "    flag = -1\n",
    "    for i in range(len(y)):\n",
    "        if x != y[i]:\n",
    "            continue\n",
    "        else:\n",
    "            return i\n",
    "    return flag"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 读取字向量"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-12-11T06:23:28.150004Z",
     "start_time": "2020-12-11T06:23:28.140008Z"
    }
   },
   "outputs": [],
   "source": [
    "def readWordEmbedding(path):\n",
    "    \"\"\"\n",
    "    读取字向量文本，生成字典和字向量数组\n",
    "    \"\"\"\n",
    "    print('reading word embedding data')\n",
    "    vec = []  # 字向量集合（列表，其中的每个值是一个列表）\n",
    "    word2id = {}  # 从字向量中构建字典\n",
    "    # 读取中文字向量中的字和向量\n",
    "    # 字数：16117，向量维度：100\n",
    "    # 这里可以考虑使用预训练的字向量（NER项目中，可以在项目中需要那个bin文件）\n",
    "    with open(path, encoding='utf-8') as f:\n",
    "        content = f.readline()\n",
    "        # content = content.strip().split()\n",
    "        # dim = int(content[1])\n",
    "        while True:\n",
    "            content = f.readline()\n",
    "            if content == '':\n",
    "                break\n",
    "            content = content.strip().split()\n",
    "            dim = len(content[1:])\n",
    "            word2id[content[0]] = len(word2id)\n",
    "            content = content[1:]\n",
    "            content = [(float)(i) for i in content]\n",
    "            vec.append(content)\n",
    "\n",
    "    # 将【空】和【未知】添加到字典中\n",
    "    word2id['UNK'] = len(word2id)\n",
    "    word2id['BLANK'] = len(word2id)\n",
    "    # 对应的，在向量列表中添加两个向量，长度与字向量长度相同，均值为0，标准差为0.05\n",
    "    vec.append(np.random.normal(size=dim, loc=0, scale=0.05))\n",
    "    vec.append(np.random.normal(size=dim, loc=0, scale=0.05))\n",
    "    vec = np.array(vec, dtype=np.float32)  # 列表转化为数组\n",
    "    \n",
    "    np.save('./data/vec.npy', vec)\n",
    "    return vec, dim, word2id"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-12-11T06:23:33.063840Z",
     "start_time": "2020-12-11T06:23:32.429077Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "reading word embedding data\n"
     ]
    }
   ],
   "source": [
    "vec_path = './origin_data/vec.txt'\n",
    "vector, dimen, word2id_dict = readWordEmbedding(vec_path)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-25T02:33:25.029715Z",
     "start_time": "2020-11-25T02:33:25.027536Z"
    }
   },
   "source": [
    "# 读取关系"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-12-11T06:23:37.650057Z",
     "start_time": "2020-12-11T06:23:37.644580Z"
    }
   },
   "outputs": [],
   "source": [
    "def readRealationToId(path):\n",
    "    \"\"\"\n",
    "    读取关系数据，生成关系字典\n",
    "    \"\"\"\n",
    "    print('reading relation to id')\n",
    "    relation2id = {}\n",
    "    with open(path, 'r', encoding='utf-8') as f:\n",
    "        content = f.readlines()\n",
    "        for sin_content in content:\n",
    "            if sin_content:\n",
    "                pair = sin_content.strip('\\n').split()\n",
    "                relation2id[pair[0]] = int(pair[1])\n",
    "    return relation2id"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-12-11T06:23:38.892157Z",
     "start_time": "2020-12-11T06:23:38.885270Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "reading relation to id\n"
     ]
    }
   ],
   "source": [
    "re_path = './origin_data/relation2id.txt'\n",
    "relation2id_dict = readRealationToId(re_path)  # 长度为12"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-25T03:04:37.025556Z",
     "start_time": "2020-11-25T03:04:37.019026Z"
    }
   },
   "source": [
    "# 读取训练数据"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:00:26.964570Z",
     "start_time": "2020-11-30T08:00:26.949315Z"
    }
   },
   "outputs": [],
   "source": [
    "def readTrainData(path, word2id, relation2id):\n",
    "    \"\"\"\n",
    "    读取训练数据，生成实体对-标签句子字典\n",
    "    \"\"\"\n",
    "    # 最大文本长度\n",
    "    fixlen = 70\n",
    "    # max length of position embedding is 60 (-60~+60)\n",
    "    maxlen = 60\n",
    "\n",
    "    train_sen = {}  # {entity pair:[[[[word1,rel_e1_1,rel_e2_1],[word2,rel_e1_2,rel_e2_2],...], [[],[],...]]]}\n",
    "    train_ans = {}  # {entity pair:[label1,label2,...]} the label is one-hot vector\n",
    "\n",
    "    print('reading train data')\n",
    "    with open(path, 'r', encoding='utf-8') as f:\n",
    "        while True:\n",
    "            content = f.readline()  #  处理每一行训练句子文本\n",
    "            if content == '':\n",
    "                break\n",
    "\n",
    "            content = content.strip().split()\n",
    "            # 获取实体名称\n",
    "            en1 = content[0]\n",
    "            en2 = content[1]\n",
    "            # 获取关系\n",
    "            # relation = 0\n",
    "            if content[2] not in relation2id:\n",
    "                relation = relation2id['NA']\n",
    "            else:\n",
    "                relation = relation2id[content[2]]\n",
    "            # put the same entity pair sentences into a dict\n",
    "            \n",
    "            tup = (en1, en2)\n",
    "            label_tag = 0\n",
    "            y_id = relation\n",
    "            label = [0 for i in range(len(relation2id))]\n",
    "            label[y_id] = 1  # 这里的label实际上变成了一个one-hot向量\n",
    "            \n",
    "            if tup not in train_sen:\n",
    "                train_sen[tup] = []\n",
    "                train_sen[tup].append([])\n",
    "                \n",
    "                train_ans[tup] = []\n",
    "                train_ans[tup].append(label)  # 用来标记一个tup的关系，label表示一个one-hot向量\n",
    "            else:\n",
    "                temp = find_index(label, train_ans[tup])  \n",
    "                if temp == -1:\n",
    "                    # label列表没有出现在已知label列表集合中，说明这是同实体对的新label列表，\n",
    "                    # 需要在句子中新加入一个空列表，label列表集合中新加入一个新label列表\n",
    "                    train_ans[tup].append(label)\n",
    "                    train_sen[tup].append([])\n",
    "                    label_tag = len(train_ans[tup]) - 1  # label_tag：同一实体对下对label列表进行标号\n",
    "                else:\n",
    "                    label_tag = temp\n",
    "\n",
    "            sentence = content[3]\n",
    "\n",
    "            # 找到实体词在句子中的位置，找不到的话设置为0\n",
    "#             en1pos = 0\n",
    "#             en2pos = 0\n",
    "            #For Chinese\n",
    "            en1pos = sentence.find(en1)\n",
    "            if en1pos == -1:\n",
    "                en1pos = 0\n",
    "            en2pos = sentence.find(en2)\n",
    "            if en2pos == -1:\n",
    "                en2pos = 0\n",
    "\n",
    "            output = []\n",
    "            # Embeding the position\n",
    "            for i in range(fixlen):\n",
    "                word = word2id['BLANK']  # 16116\n",
    "                rel_e1 = pos_embed(i - en1pos, maxlen)\n",
    "                rel_e2 = pos_embed(i - en2pos, maxlen)\n",
    "                # [word, rel_e1, rel_e2] 表示一个字相对两个实体字的相对位置，word先全部定为【空】，然后再依次赋予id值\n",
    "                output.append([word, rel_e1, rel_e2])  \n",
    "\n",
    "            for i in range(min(fixlen, len(sentence))):  # 选取最小的长度，超过的截断，不足的其他位补充为【空】\n",
    "                # word = 0\n",
    "                if sentence[i] not in word2id:\n",
    "                    word = word2id['UNK']\n",
    "                else:\n",
    "                    word = word2id[sentence[i]]\n",
    "                output[i][0] = word  # 将 word2id 中的词对应的id赋值给 output[i][0]\n",
    "\n",
    "            train_sen[tup][label_tag].append(output)\n",
    "    return train_sen, train_ans"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:00:32.072045Z",
     "start_time": "2020-11-30T08:00:31.957830Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "reading train data\n"
     ]
    }
   ],
   "source": [
    "train_path = './origin_data/train.txt'\n",
    "train_sentences, train_labels = readTrainData(train_path, word2id_dict, relation2id_dict)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:00:34.548786Z",
     "start_time": "2020-11-30T08:00:34.306136Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{('朱时茂', '陈佩斯'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('女', '卢润森'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('侯佩岑', '黄伯俊'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李敖', '王尚勤'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('傅家俊', '丁俊晖'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('梁左', '梁天'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('司马懿', '诸葛亮'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('徐宗汉', '张竹君'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('慕容德', '慕容暐'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李菁', '郭德纲'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]],\n",
       " ('唐杰忠', '刘伟'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('钱钟书', '辛笛'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]],\n",
       " ('元武', '元华'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郭全宝', '郭启儒'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('傅全香', '吴小楼'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('巩俐', '黄和祥'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郑家钧', '夏明翰'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李嘉昭', '李云经'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('五月天', '阿信'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('孔融', '荀彧'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('潘长江', '巩汉林'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('上官婉儿', '武则天'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('洪金宝', '洪天照'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('荣剑尘', '谢舒扬'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('傅希如', '赵群'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('贾母', '明'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('Selina', 'S'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹勤', '孙姬'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张简修', '张静修'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('夏侯渊', '夏侯霸'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('霍启山', '霍启刚'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('范姜', '钟镇涛'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('毛泽东', '贺子珍'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈锦棠', '芳艳芬'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蕙芬', '杨小楼'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('秦沛', '王侠'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('敖嘉年', '黄敏豪'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('萧朝贵', '杨秀清'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('黄芳', '陈富杰'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('朱棣文', '吉恩'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('林月云', '侯佩岑'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('贾巧姐', '刘姥姥'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('女', '邱羿霖'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵婷婷', '杜婧'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('冯小刚', '热力兄弟'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('崔琰', '司马朗'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张庭', '曾少宗'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('冰心', '吴文藻'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蒋孝慈', '蒋经国'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张云溪', '迟景昆'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('石达开', '韦昌辉'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('毛泽东', '毛新宇'): [[0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]],\n",
       " ('谢霆锋', '王力宏'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹操', '姚玉英'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('周迅', '王菲'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李振辉', '李小龙'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('施银花', '曹禺'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘表', '孙权'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('谢霆锋', '谢婷婷'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('贾赦', '贾政'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吴尊', '王力宏'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陶晴贤', '大内义隆'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]],\n",
       " ('李根', '女'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('杜鹃', '谭兰卿'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('任剑辉', '白雪仙'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('贾政', '贾母'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('叶步青', '黄敦梁'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]],\n",
       " ('叶莉', '姚明'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('宋仁宗', '郭槐'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘据', '汉武帝'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹彦', '曹训'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('林立果', '吴法宪'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('长孙皇后', '唐太宗'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吴镇宇', '惠英红'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('戴季陶', '津渊美智子'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('武松', '西门庆'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('黎婴', '黎姿'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李龙大', '古健杰'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吴尊', '允浩'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('梅葆玥', '梅兰芳'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈鸿烈', '陈品亨'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('韦昌辉', '石达开'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('李湘', '王诗龄'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('杜美如', '杜月笙'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('潘虹', '杜十娘'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蒋勤勤', '陈建斌'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('唐涤生', '郑孟霞'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('宋子文', '倪桂珍'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李天佑', '彭德怀'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('尹恩惠', '金钟国'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('高崚', '张洁雯'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('姜维', '诸葛亮'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郭荣启', '杨少华'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蒋中正', '毛福梅'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('许褚', '典韦'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('钟镇涛', '章小婉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('殷离', '周芷若'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('许晋亨', '李嘉欣'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('何启', '何爱榆'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈独秀', '胡适'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('李嘉诚', '庄月明'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('芦璐', '女'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李民桥', '潘金翠'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈小旺', '陈照奎'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]],\n",
       " ('罗振玉', '罗福颐'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('袁术', '曹操'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('程永光', '果素瑛'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('葛淑珍', '赵本山'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('傅全香', '陆锦花'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘表', '刘备'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('周汤豪', '蔡依林'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]],\n",
       " ('刘索拉', '瞿小松'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('霍启仁', '霍启山'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('谭正岩', '谭孝曾'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吕后', '吕台'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]],\n",
       " ('茹富兰', '茹富蕙'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('茹绍荃', '包飞'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘备', '刘表'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('裘丽琳', '周信芳'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('卢俊义', '武松'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陆小曼', '梁启超'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张智霖', '袁咏仪'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('柳海平', '段义和'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('常俊丽', '赵贞玉'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]],\n",
       " ('陈水扁', '陈致中'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('纣王', '妲己'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('英达', '梁欢'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('杨秀清', '石达开'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('蒋纬国', '蒋经国'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('方美芳', '齐秦'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('石富宽', '侯震'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('于芬', '伏明霞'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('元春', '贾政'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('公孙瓒', '赵云'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]],\n",
       " ('张怡宁', '李隼'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('杜淳', '张嘉倪'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('言少朋', '李蔷华'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('山口百惠', '三浦友和'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('岳灵珊', '林平之'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('阮星竹', '段正淳'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('燕青', '卢俊义'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]],\n",
       " ('李大为', '高'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郭兰英', '茅盾'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('游乃海', '杜琪峰'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('张克帆', '张洛君'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('马连良', '梅兰芳'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蔡卓妍', '郑伊健'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('聂荣臻', '杨得志'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈豪', '郑嘉颖'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郭睿玥', '许美玲'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('恽代英', '林育南'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('余德琳', '许志安'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('刘芸', '郑钧'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('杜近芳', '李国静'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('董海川', '程庭华'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹节', '曹操'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('贾琏', '王熙凤'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('热力兄弟', '舒淇'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('萍', '顾瑞英'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张以成', '王佩英'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('杨博森', '杨燕毅'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘开渠', '梁思成'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李治', '唐高宗'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('季承', '季羡林'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈纪', '高'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('句号', '蔡明'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('新马师曾', '任剑辉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('韩冬柏', '梅葆玖'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('潮田玲子', '小椋久美子'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('郭台铭', '刘嘉玲'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('胡蝶', '潘有声'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王云卿', '胡素仙'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('毛泽东', '章含之'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张允和', '周有光'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陆锦花', '张桂莲'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('黄晓娟', '赵本山'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('半日安', '余丽珍'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('倪桂珍', '宋耀如'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('霍启文', '霍震寰'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蓝心湄', '黄小柔'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('成淑', '卢兰'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('毛岸青', '邵华'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('华少', '秦利鸽'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('武修文', '武敦儒'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈琮英', '任弼时'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('林彪', '陈毅'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('孙权', '顾雍'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵玉芳', '葛淑珍'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('冯云山', '萧朝贵'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('常宝堃', '常宝霆'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵本山', '小沈阳'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('夏伊乔', '张韵士'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('范雯', '黄旭'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李菁', '何云伟'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('杨德昌', '蔡琴'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('孙科', '蓝妮'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵晨浩', '吴尊'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('女', '戴辛尉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('金庸', '林海峰'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('余光中', '范我存'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('包小松', '包庭政'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]],\n",
       " ('冯允庄', '戴忠桂'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('允浩', '赵晨浩'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('谭鑫培', '谭志道'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('黄旭', '范雯'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('包拯', '董氏'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('阎维文', '金铁霖'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张君秋', '张学浩'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘邦', '韩信'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]],\n",
       " ('曹云金', '常宝华'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('谭鑫培', '谭富英'): [[0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]],\n",
       " ('石富宽', '陈涌泉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('袁术', '袁绍'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('周华健', '康粹兰'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('傅全香', '毕春芳'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('姜昆', '李文华'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('时慧宝', '李桐'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王亮', '沈阳'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('谭鑫培', '金秀山'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('高圆圆', '窦唯'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蒋孝文', '蒋友梅'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('梁思顺', '梁思庄'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('周渝民', '言承旭'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('巩汉林', '潘阳'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘协', '曹华'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈赓', '徐向前'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('孙英杰', '孙凤有'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王丽云', '赵丽蓉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('艾梅梅', '艾青'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('林立果', '军'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('毛宁', '景岗山'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('宋姬', '曹徽'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('大S', '汪小菲'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘谌', '刘禅'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('徐玉兰', '范瑞娟'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李香凝', '李小龙'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('姚水娟', '李艳芳'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('沈九娘', '唐伯虎'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吴小楼', '袁雪芬'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('释小龙', '何洁'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('刘滨', '毛新宇'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('半日安', '任剑辉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('于连泉', '萧长华'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('甄子丹', '武术家'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('顾长卫', '蒋雯丽'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('钱妙花', '黄笑笑'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('靓次伯', '任剑辉'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('窦靖童', '王菲'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('虞梦', '卡拉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李文华', '唐杰忠'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李忆如', '赵灵儿'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('毛泽东', '陶铸'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('冯弘', '王仁'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张翠山', '张三丰'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('父', '胡学礼'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('何猷龙', '何超莲'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蒋孝勇', '蒋经国'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张继科', '刘诗雯'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('英如镝', '英达'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('于芬', '女'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('贺龙', '贺晓明'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('冯云山', '石达开'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈乔年', '陈延年'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('马师曾', '白雪仙'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('冯跋', '冯弘'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('燕青', '张横'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('周星霞', '于文凤'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('米雪', '林文龙'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('寒春', '阳早'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹植', '曹操'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('邓之诚', '谭其骧'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('杨小娟', '吕良伟'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('林徽因', '张幼仪'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('马伊琍', '文章'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王明明', '周思聪'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('凤凰女', '任剑辉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('关公', '侯宝林'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('钱穆', '钱声一'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('傅全香', '徐玉兰'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘骜', '班婕妤'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('高笑林', '冯巩'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('汪小菲', '汪则翰'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('秋瑾', '王子芳'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘奭', '霍光'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈云', '李力群'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('尹喜地', '尹明善'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('海霞', '李梓萌'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('辛柏青', '朱媛媛'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('秦叔宝', '张须陀'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]],\n",
       " ('高', '张居正'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹真', '曹羲'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('徐斌寿', '陆喜才'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李鸣岩', '冯志孝'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('徐子淇', '洪天明'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('黄美芸', '高锟'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王玉', '孟凡贵'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('固伦和孝公主', '乾隆'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹林', '曹植'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蔡加赞', '蔡志明'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('武内直子', '富坚义博'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('冯宝华', '于宝林'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('李靖', '杜如晦'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('耿伯春', '卢福来'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('李再雯', '小白玉霜'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('米芾', '陈垣'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李健生', '章诒和'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('后羿', '嫦娥'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('周景轩', '张纯华'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('尹笑声', '黄铁良'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('黎婴', '父'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('虚竹', '玄慈'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('元楼', '元华'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵飞燕', '汉成帝'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('白海', '王锡良'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('同治', '马立安'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('黄奕', '姜凯'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('钱瘦铁', '张大千'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('任冰儿', '任剑辉'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('孙谦', '孙翊'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('金敏喜', '李政宰'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('吕婉柔', '大S'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('彭壮壮', '彭云'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈凯歌', '陈红'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('韩仁均', '韩寒'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('麦嘉轩', '刘遵义'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('贾珠', '王夫人'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('邓亚萍', '林志刚'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李逍遥', '圣姑'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李赛凤', '罗启仁'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘晓庆', '吴宗宪'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('朱德', '毛泽覃'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王文林', '曹云金'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('钟欣桐', '林建岳'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('佟晨洁', '谢晖'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('宋江', '李逵'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]],\n",
       " ('袁克权', '端方'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('琦琦', '任达华'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('大元', '薛凯琪'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘宝全', '宋五'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王文林', '李云杰'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘云天', '曹云金'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('孙尚香', '孙匡'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘备', '关兴'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郭襄', '杨过'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曾国祥', '曾启荣'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陆飞鸿', '凤凰女'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘艾琳', '汤寿高'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('敖犬', '棒棒堂'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('项羽', '虞姬'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('阎晶晶', '李禾禾'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈家英', '尹靖'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李敏', '毛泽东'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('鲍蕾', '陆毅'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('棒棒堂', '敖犬'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘永行', '刘永好'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵胤胤', '陈数'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李蔷华', '言少朋'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('女', '张彭春'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('高德亮', '常宝霆'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('塞雷多娃', '布冯'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('宋祖英', '女'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('英达', '梁天'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('新凤霞', '马季'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('任剑辉', '凤凰女'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('金建杭', '马云'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('张国荣', '梅艳芳'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('薛嘉麟', '诸葛梓岐'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('陈水扁', '吴淑珍'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('Twins', '热力兄弟'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('袁日初', '袁祥仁'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('徐天红', '袁雪芬'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('贾樟柯', '王宝强'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('孙策', '孙翊'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('金巧巧', '黄光裕'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('裘芸', '张顺'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('贾南风', '晋惠帝'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('小龙女', '徐峥'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('军', '石达开'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('林家声', '任剑辉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('黄宗江', '黄宗英'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('十六夜', '父'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('何鸿燊', '何超仪'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('谭小培', '谭富英'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('舒尔哈齐', '费英东'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('田立禾', '佟守本'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('高', '刘伯明'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王励勤', '赵薇'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('叶群', '林彪'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王安', '魏忠贤'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('郭女王', '郭永'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李四光', '王君'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王锡良', '吴国兴'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('霍启刚', '郭晶晶'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘文步', '郑福山'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('谭小培', '谭正岩'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈锦棠', '靓次伯'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郭襄', '金庸'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('大乔', '周瑜'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王敏德', '马诗慧'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('宋江', '戴宗'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('李彧', '李保田'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('左宗棠', '曾国藩'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王献之', '谢安'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('薛世恒', '卡拉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('姜昆', '赵炎'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('周总理', '周好璐'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('那英', '高峰'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘诗雯', '张继科'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('李圣根', '晏紫'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('常宝堃', '常连安'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王玉', '张灵甫'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李世民', '李恪'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('慕容恪', '慕容皝'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵子琪', '路金波'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('范瑞娟', '张桂凤'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('濮方', '濮存昕'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('侯宝林', '侯耀文'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('马长礼', '裘芸'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('钟懿', '钟镇涛'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('萧何', '吕后'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('梅兰芳', '乔蕙兰'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('梁从诫', '梁思成'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘坤龙', '蔡康永'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('杨锐', '谭嗣同'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹操', '吴夫人'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('女', '钟懿'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('小林光一', '木谷礼子'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('林青霞', '薛宝钗'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('胡一刀', '胡斐'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张桂凤', '徐玉兰'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('孙亮', '孙权'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蒋文端', '陈绍基'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('曾志伟', '赵晨浩'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('杜维屏', '杜月笙'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('红线女', '马师曾'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹操', '曹华'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('龚苏萍', '孙毓敏'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张桂凤', '傅全香'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('徐学君', '沈阳'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王美华', '曾志伟'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李丽', '李焕弟'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('路青', '艾未未'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵婷婷', '杨维'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('谢霆锋', '张柏芝'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('谢婷婷', '文静'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('冯钟芸', '任远'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘銮雄', '宝咏琴'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('宋美英', '陈凛'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('女', '李林'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张大千', '马三立'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈伟华', '陈云'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('丁是娥', '常香玉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('段义和', '柳海平'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('张氏', '万冬儿'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('薛宝钗', '王熙凤'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蔡博', '蔡和森'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('朱自清', '武钟谦'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('任剑辉', '余丽珍'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('孙权', '刘备'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('雷颂德', '高峰'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('俞扬和', '俞大维'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('甄子丹', '梁静慈'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('任剑辉', '谭倩红'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('经亨颐', '廖承志'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('徐天红', '高剑琳'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('伍文忠', '田鹏飞'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('女', '张美'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹雪芹', '薛宝钗'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('习仲勋', '习近平'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张学友', '刘德华'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('刘璇', '王弢'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('阮小五', '阮小二'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('徐玉兰', '吕瑞英'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吴公', '李斯'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('连战', '连惠心'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('钟丽淇', '拿度'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('毛泽东', '莫文骅'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('梁朝伟', '韦小宝'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('元稹', '白居易'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('张顺', '燕青'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张亚东', '高圆圆'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('范伟', '赵本山'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('廖静文', '徐悲鸿'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张无忌', '谢逊'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('黄秀英', '包陪庆'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('高凌风', '金友庄'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘邦', '刘肥'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵子龙', '赵薇'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('夏明翰', '谢觉哉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘永言', '刘永好'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张庭', '谢霆锋'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('萧军', '萧红'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('马国贤', '张克帆'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('任剑辉', '靓次伯'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵晨浩', '韩庚'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('侯喜瑞', '梅兰芳'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('廖承志', '陈香梅'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]],\n",
       " ('张绣', '曹操'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('石慧儒', '荣剑尘'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('慕容垂', '慕容恪'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵培鑫', '孟小冬'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('栾云平', '郭德纲'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('高百岁', '孙立'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张洁雯', '杨维'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('林黛玉', '林申'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('屠杏花', '唐伯虎'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李家诚', '徐子淇'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('黄美伦', '石舫亘'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('马超', '关羽'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李世民', '侯君集'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]],\n",
       " ('周汤豪', '周禹侯'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('司马衷', '司马炎'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('姜昆', '戴志诚'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('罗斯福', '宋蔼龄'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('严慰冰', '陆定一'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张会', '王濛'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('罗福成', '罗福苌'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('徐若瑄', '比莉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('范瑞娟', '吴小楼'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蒋纬国', '蒋介石'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郑福山', '刘文步'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('杨得志', '张爱萍'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('黄睿靓', '陈致中'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('朱安婕', '朱慧珍'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('周兆明', '王老赏'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('程小东', '唐季礼'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('徐峥', '陶虹'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('朱宏钧', '白岩松'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('许冠文', '许冠杰'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王力宏', '谢霆锋'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('卫子夫', '刘据'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('史文恭', '张翼鹏'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('柏拉图', '苏格拉底'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('唐代宗', '李邈'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('任剑辉', '任冰儿'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('艾青', '高瑛'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('廖凤舒', '李少石'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]],\n",
       " ('黄浩棉', '黄宝任'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵本山', '洋洋'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('傅作义', '傅冬菊'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王文娟', '吕瑞英'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('周恩来', '陈毅'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('傅家俊', '女'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王平', '黄宏'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('罗敏庄', '陈国邦'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吕正操', '张学良'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('张云逸', '莫文骅'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('汪明荃', '罗家英'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吴楚帆', '马师曾'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('佟守本', '郑福山'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张小凡', '田不易'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李海泉', '李小龙'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('棒棒堂', '杨奇煜'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('查尔斯', '卡米拉'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王熙凤', '巧姐'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('谭咏麟', '张曼玉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吕瑞英', '王文娟'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('万里', '郭可盈'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('杨淑君', '朱木炎'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('东乡公主', '曹丕'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵灵儿', '女娲'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('汤佩松', '陈华癸'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('萧红', '端木蕻良'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('钱永真', '钱学森'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('徐尚田', '叶问'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张兆和', '周有光'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('萧圣谚', '萧亚轩'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蒋纬国', '宋美龄'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李蔷华', '童芷苓'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('周作人', '文章'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('严君平', '扬雄'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('闫长现', '李树建'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李渊', '秦叔宝'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]],\n",
       " ('仪行父', '孔宁'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('麦炳荣', '芳艳芬'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('双儿', '韦小宝'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('冯顺弟', '胡适'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('诸葛亮', '刘备'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]],\n",
       " ('佟有为', '马三立'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('徐根宝', '王后军'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('唐太宗', '长孙无忌'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吕美荪', '吕坤秀'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('虞姬', '赵树海'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张荔英', '陈友仁'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('贺子珍', '毛泽东'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('金敬姬', '张成泽'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('田立禾', '刘云天'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵兰坤', '连震东'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('袁雪芬', '张桂凤'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郑裕彤', '刘銮雄'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('季羡林', '季承'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵婷婷', '张洁雯'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蒋才如', '汤寿高'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('唐义贞', '陆定一'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('司马朗', '司马懿'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蔡畅', '李富春'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘宝全', '小岚云'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('张桂凤', '毕春芳'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('许冠武', '许冠英'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('洪金宝', '父'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王昌虎', '王乃水'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('任剑辉', '麦炳荣'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李鸣盛', '李华亭'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('孔褒', '孔融'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('枣处', '荀彧'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('周采茨', '麒麟童'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张雨绮', '余文乐'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('梅葆玖', '李翔'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('沈春阳', '赵本山'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘翔', '史冬鹏'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('谢天华', '李天恩'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('灰娃', '张仃'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('常宝霆', '常宝霖'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('杨云', '潘长江'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张国立', '罗倩文'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('范瑞娟', '王文娟'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郑少秋', '郑咏曦'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王熙凤', '贾母'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹叡', '曹芳'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('毛泽东', '毛泽覃'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('乔冠华', '龚澎'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('浦安修', '彭德怀'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('邓小平', '包玉刚'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郑洁', '张宇'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('叶剑英', '朱德'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('廖仲恺', '廖承志'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('姚沁蕾', '姚明'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('晴雯', '贾宝玉'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]],\n",
       " ('阮经天', '白歆惠'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('马志明', '马德禄'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('灭绝师太', '周芷若'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张东健', '高小英'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('朱安', '许广平'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('容星桥', '父'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('卢晓', '罗雪娟'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('蒋方良', '蒋经国'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('女', '张玉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陶勇', '朱岚'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('宋庆龄', '王光美'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('筱丹桂', '尹桂芳'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('雪梨', '米雪'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李宁', '陈永妍'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('沈春阳', '小沈阳'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('唐高祖', '唐太宗'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('何云伟', '于谦'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陆英修', '朴正熙'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陆小曼', '徐志摩'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('袁和平', '袁日初'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张震岳', '周华健'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李文', '金珠'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('盛中国', '盛中华'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('钟镇涛', '范姜'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('龚澎', '乔宗淮'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('于文凤', '朱茵'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曾志伟', '柏安妮'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('谢霆锋', '郭富城'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('韦小宝', '阿珂'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张荔英', '张静江'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李敏', '孔从洲'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('潘楚颖', '潘迪生'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('杜十娘', '任剑辉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张元和', '张允和'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王志文', '陈坚红'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('肖桂云', '毛泽东'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('谢贤', '狄波拉'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('章含之', '洪晃'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('叶问', '叶步青'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈幸妤', '吴淑珍'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李嘉欣', '许晋亨'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('彭顺', '郑伊健'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郜林', '刘庭羽'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('康熙', '王海轮'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李菁', '侯耀文'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵本山', '赵晨浩'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('光绪', '黄遵宪'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]],\n",
       " ('赖俊健', '赖明明'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘学仁', '王世臣'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘宝瑞', '唐杰忠'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('热力兄弟', '阮经天'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('多尔衮', '代善'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张国荣', '关智斌'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王文林', '王玥'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('何云伟', '郭德纲'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李经文', '西施'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('迷你彬', '马如龙'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵芸蕾', '田卿'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('李少红', '曾念平'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('忍子', '流川枫'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('金范', '李民浩'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('朱丽倩', '刘德华'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('龚云甫', '文亮臣'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王力宏', '郑允浩'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('毛远新', '毛泽民'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘宝瑞', '郭全宝'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('卫子夫', '汉武帝'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('袁龙驹', '袁信义'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('周付元', '周春秀'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('彭儒', '陈正人'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('萧何', '韩信'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('哈辉', '杨柳'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('白雪仙', '谭兰卿'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郑允浩', '王力宏'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张洁清', '彭真'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('裘盛戎', '裘桂仙'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陆毅', '鲍蕾'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('彭德怀', '彭梅魁'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]],\n",
       " ('贾母', '王夫人'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('许金彩', '徐天红'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('汉成帝', '班婕妤'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('庄希泉', '余佩皋'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('韩庚', '郑允浩'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('红线女', '任剑辉'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('秦始皇', '赵高'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]],\n",
       " ('关羽', '关平'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('梅兰芳', '吴菱仙'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('侯军', '侯耀华'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('军', '张顺'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('木谷礼子', '小林光一'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王刚', '成方圆'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张君秋', '关正明'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王宁', '邢质斌'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘晓兰', '郭云深'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]],\n",
       " ('文章', '梁宗岱'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('戴安娜王妃', '查尔斯王储'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蒋中正', '胡宗南'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李菁', '栾云平'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘备', '孙权'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('何香凝', '廖梦醒'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('栾云平', '李菁'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('貂蝉', '董卓'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹奂', '曹操'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('羽田亨', '宫崎市定'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('傅全香', '陈金莲'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('小昭', '殷离'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('孙奋', '孙休'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('贺聪', '葛优'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈岚', '丁佩'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('叶准', '李小龙'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('徐娇', '周星驰'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵一荻', '张学良'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹腾', '曹嵩'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('邢慧娜', '王德显'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('迟浩田', '姜青萍'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('梁丹妮', '冯远征'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('梅兰芳', '王瑶卿'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('孙甫亭', '女'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('傅全香', '袁雪芬'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('工藤静香', '中岛美雪'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('邓团子', '谈镐生'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('苏步青', '胡和生'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('马小曼', '马连良'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('虎美玲', '连德志'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘大櫆', '方苞'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张桂凤', '吕瑞英'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('吴用', '阮小七'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('洪文安', '陈冠希'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('栾云平', '王文林'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('小龙女', '杨过'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张曼玲', '尚长荣'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('高', '贾政'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郭全宝', '刘宝瑞'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('宋德珠', '宋丹菊'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('周杰伦', '桂纶镁'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹爽', '司马懿'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('袁世凯', '袁克文'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('许广平', '雷洁琼'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李乐亭', '李世霖'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('杨秀清', '冯云山'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('杜近芳', '李宝春'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('热力兄弟', '周杰伦'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('白凯南', '贾玲'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('孙权', '周瑜'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]],\n",
       " ('新马师曾', '贾宝玉'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('方声洞', '王颖'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('姚晨', '凌潇肃'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘文辉', '刘元彦'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵建铭', '吴淑珍'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('贾赦', '周汝昌'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('高凤山', '侯宝林'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('张桂莲', '戚雅仙'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张育汉', '小钟'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('唐高宗', '李治'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('宫崎市定', '内藤湖南'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郑弘', '张译'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陆定一', '严慰冰'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('杨少华', '侯宝林'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈宝莲', '张菲'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('靓次伯', '罗艳卿'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹操', '军'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('马连良', '马小曼'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('钱永佑', '钱学榘'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('何东', '周绮文'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('诸葛亮', '诸葛圭'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郭德纲', '谢娜'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李丹宇', '李望知'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('谢东', '杨钰莹'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('热力兄弟', '赵晨浩'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('费德勒', '米尔卡'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蔡依林', '陈冠希'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吴绮莉', '林凤娇'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('姜文杰', '姜丽文'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘邦', '吕后'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赵佩茹', '常连安'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈可辛', '吴君如'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈锦棠', '林家声'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('杨振宁', '李政道'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('曾志伟', '曾国祥'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈致中', '陈水扁'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('诸葛亮', '关羽'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王采玉', '毛福梅'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈泮岭', '李存义'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李蕴', '刘谦'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('BOBO组合', '井柏然'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('金正日', '高'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('贺晓明', '明'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('江泽民', '江泽慧'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈淑英', '孙科'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('成龙', '孟海'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('彭荣华', '彭德怀'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('方文山', '吴宗宪'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('张茜', '陈毅'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('叶群', '林立果'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('靓元亨', '蛇王苏'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘国梁', '刘国栋'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('白雪仙', '凤凰女'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李前宽', '毛泽东'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郭靖', '小龙女'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('何超琼', '许晋亨'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('于右任', '刘觉民'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吉尔伯托', '席尔瓦'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('芳艳芬', '任剑辉'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('张飞', '胡军'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('毛岸英', '刘思齐'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('车新港', '陈中'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('侯宝林', '郭全宝'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('安娜', '刘亚楼'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('慈瑞泉', '慈少泉'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('赖昌星', '赖真真'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('傅声', '华'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('甄士隐', '贾雨村'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('杨紫琼', '蔡慧敏'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('叶步青', '叶问'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('宋慧乔', '玄彬'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('陈冠希', '杨永晴'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('刘禅', '甘夫人'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张飞', '关羽'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('于芬', '田亮'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('眭禄', '江钰源'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹霖', '曹丕'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('白全福', '阿双全'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('余秋里', '杨尚昆'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('古健杰', '李宗伟'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('孔融', '孔褒'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郭麒麟', '胡中惠'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('章含之', '女'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('汪洋', '赵本山'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('陈水扁', '黄睿靓'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张瑞芳', '余克稷'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王鹏', '李宁'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('女', '孙怡云'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘宗杨', '杨小楼'): [[0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]],\n",
       " ('毛泽东', '孔从洲'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('郭令山', '郭晋安'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('凤凰女', '林家声'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('沈春阳', '于月仙'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('宋远桥', '莫声谷'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]],\n",
       " ('汪圆圆', '汪诗诗'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('侯耀文', '侯耀华'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('林申', '李小婉'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('黄帝', '嫘祖'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李少春', '张云溪'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('费孝通', '吴泽霖'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]],\n",
       " ('陈祖莫', '陈昌浩'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('元华', '成龙'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('范瑞娟', '毕春芳'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('柳如是', '钱谦益'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('田卿', '成淑'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('胡海牙', '陈撄宁'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吕良伟', '杨小娟'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('冯钟璞', '宗璞'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王根英', '周恩来'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('戴月琴', '吴祖光'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('范伟', '梁信军'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('卡米拉', '戴安娜'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('周丽淇', '郑嘉颖'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹节', '金乡公主'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('马琳', '张宁益'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('于宝林', '冯宝华'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('田中直纪', '田中真纪子'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('高英姬', '金正哲'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹操', '曹丕'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('蒋介石', '向影心'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('黄重生', '徐淑敏'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('郭启儒', '郭全宝'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('卡米拉', '查尔斯王子'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('孙翊', '孙策'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李多奎', '孙甫亭'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('何超云', '何超盈'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张作霖', '段祺瑞'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('姚晨', '曹郁'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('邓继增', '魏文华'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('齐秦', '王祖贤'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('霍光', '曹襄'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('马海渊', '马麟'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('毛新宇', '毛东东'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李泽楷', '梁洛施'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('何猷龙', '何鸿燊'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('小钟', '蓝正龙'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('叶璇', '林峰'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('潘静淑', '吴湖帆'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('彭雪枫', '林颖'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('武大郎', '西门庆'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('苗若兰', '胡斐'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('孙和', '孙鲁班'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('李树建', '闫长现'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('龙云', '郑佩佩'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('哈里王子', '查尔斯'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张震', '小沈阳'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吕大忠', '吕大钧'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吴玠', '吴扆'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吴作人', '萧淑芳'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('关悦', '佟大为'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('马克思', '斯大林'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘宝瑞', '侯宝林'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('伍文忠', '肖国栋'): [[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吴文藻', '吴泽霖'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('冯爱居', '冯弘'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]],\n",
       " ('王梓木', '敬一丹'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('范玮琪', '陈建州'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吴三桂', '阿珂'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('萧长华', '李洪春'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('侯宝林', '郭启儒'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('冯小刚', '张娣'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('汉武帝', '刘据'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('成吉思汗', '拖雷'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('女', '张杰尧'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘雪涛', '沈曼华'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('父', '郭槐'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('梁红玉', '韩世忠'): [[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('许广平', '郑振铎'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('侯耀华', '侯耀文'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('兰穆', '慕容盛'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]],\n",
       " ('希特勒', '戈林'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('常宝霆', '孙玉奎'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('撒贝娜', '撒贝宁'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('马德禄', '张宝如'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张佩纶', '洪钧'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('任冰儿', '林家声'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('唐廷枢', '唐杰臣'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]],\n",
       " ('高', '梁朝伟'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('黄心琳', '刘谦'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('女', '解植坤'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王玉珍', '周麟阁'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]],\n",
       " ('伯里克利', '山提波斯'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('吴乃群', '刘玉栋'): [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]],\n",
       " ('郑允浩', '赵晨浩'): [[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]],\n",
       " ('程华', '程思远'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('钱思亮', '傅斯年'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('马乃西', '马英九'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('曹斯杰', '郭守正'): [[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]],\n",
       " ('贺锡敬', '徐若瑄'): [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]],\n",
       " ('任剑辉', '吴楚帆'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('张卫健', '韦小宝'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('大乔', '小乔'): [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('王长友', '孙玉奎'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('刘子张', '刘玄'): [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]],\n",
       " ('芳艳芬', '朱丹'): [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]}"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "train_labels"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 读取测试数据"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:00:37.323998Z",
     "start_time": "2020-11-30T08:00:37.312258Z"
    }
   },
   "outputs": [],
   "source": [
    "def readTestData(path, word2id, relation2id):\n",
    "    \"\"\"\n",
    "    读取测试数据，生成实体对-标签句子字典\n",
    "    \"\"\"\n",
    "    fixlen = 70\n",
    "    maxlen = 60\n",
    "    print('reading test data')\n",
    "\n",
    "    test_sen = {}  # {entity pair:[[sentence 1],[sentence 2]...]}\n",
    "    test_ans = {}  # {entity pair:[labels,...]} the labels is N-hot vector (N is the number of multi-label)\n",
    "\n",
    "    with open('./origin_data/test.txt', 'r', encoding='utf-8') as f:\n",
    "        while True:\n",
    "            content = f.readline()\n",
    "            if content == '':\n",
    "                break\n",
    "\n",
    "            content = content.strip().split()\n",
    "            en1 = content[0]\n",
    "            en2 = content[1]\n",
    "            if content[2] not in relation2id:\n",
    "                relation = relation2id['NA']\n",
    "            else:\n",
    "                relation = relation2id[content[2]]\n",
    "            \n",
    "            tup = (en1, en2)\n",
    "            y_id = relation\n",
    "            \n",
    "            if tup not in test_sen:\n",
    "                test_sen[tup] = []\n",
    "                label_tag = 0  # 完全没用上\n",
    "                label = [0 for i in range(len(relation2id))]\n",
    "                label[y_id] = 1\n",
    "                test_ans[tup] = label\n",
    "            else:\n",
    "                test_ans[tup][y_id] = 1\n",
    "\n",
    "            sentence = content[3]\n",
    "\n",
    "#             en1pos = 0\n",
    "#             en2pos = 0\n",
    "\n",
    "            #For Chinese\n",
    "            en1pos = sentence.find(en1)\n",
    "            if en1pos == -1:\n",
    "                en1pos = 0\n",
    "            en2pos = sentence.find(en2)\n",
    "            if en2pos == -1:\n",
    "                en2pos = 0\n",
    "\n",
    "            output = []\n",
    "\n",
    "            for i in range(fixlen):\n",
    "                word = word2id['BLANK']\n",
    "                rel_e1 = pos_embed(i - en1pos, maxlen)\n",
    "                rel_e2 = pos_embed(i - en2pos, maxlen)\n",
    "                output.append([word, rel_e1, rel_e2])\n",
    "\n",
    "            for i in range(min(fixlen, len(sentence))):\n",
    "                word = 0\n",
    "                if sentence[i] not in word2id:\n",
    "                    word = word2id['UNK']\n",
    "                else:\n",
    "                    word = word2id[sentence[i]]\n",
    "\n",
    "                output[i][0] = word\n",
    "            test_sen[tup].append(output)\n",
    "    return test_sen, test_ans"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:00:38.239131Z",
     "start_time": "2020-11-30T08:00:38.220766Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "reading test data\n"
     ]
    }
   ],
   "source": [
    "test_path = './origin_data/test.txt'\n",
    "test_sentences, test_labels = readTestData(test_path, word2id_dict, relation2id_dict)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 注意（可能引起的问题）：\n",
    "\n",
    "train_sentences比test_sentences每一个value中要多一层列表括号；\n",
    "\n",
    "train_labels比test_labels每一个value中要多一层列表括号"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:00:45.549246Z",
     "start_time": "2020-11-30T08:00:45.545287Z"
    }
   },
   "outputs": [],
   "source": [
    "# 创建存放训练，测试数据位置\n",
    "if not os.path.exists(\"data\"):\n",
    "    os.makedirs(\"data\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 生成训练数据"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:00:51.207598Z",
     "start_time": "2020-11-30T08:00:51.198962Z"
    }
   },
   "outputs": [],
   "source": [
    "def generateTrainData(train_sen, train_ans):\n",
    "    print('organizing train data')\n",
    "    train_x = []\n",
    "    train_y = []\n",
    "    with open('./data/train_q&a.txt', 'w', encoding='utf-8') as f:\n",
    "        temp = 0\n",
    "        for tup in train_sen:\n",
    "            if len(train_ans[tup]) != len(train_sen[tup]):  # 检查是否句子标注和label标注是一一对应的\n",
    "                print('ERROR')\n",
    "            lenth = len(train_ans[tup])  # 关系标签的个数\n",
    "            for j in range(lenth):\n",
    "                train_x.append(train_sen[tup][j])\n",
    "                train_y.append(train_ans[tup][j])\n",
    "                # 在文件中写入【序号，实体1，实体2，标签位置】\n",
    "                f.write(str(temp) + '\\t' + tup[0] + '\\t' + tup[1] + '\\t' + str(np.argmax(train_ans[tup][j])) + '\\n')\n",
    "                temp += 1\n",
    "    train_x = np.array(train_x)\n",
    "    train_y = np.array(train_y)\n",
    "    np.save('./data/train_x.npy', train_x)\n",
    "    np.save('./data/train_y.npy', train_y)\n",
    "    return train_x, train_y"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:01:23.256937Z",
     "start_time": "2020-11-30T08:01:23.178813Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "organizing train data\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/opt/anaconda3/lib/python3.7/site-packages/ipykernel_launcher.py:17: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray\n"
     ]
    }
   ],
   "source": [
    "train_data, train_label = generateTrainData(train_sentences, train_labels)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 生成测试数据"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:01:27.023209Z",
     "start_time": "2020-11-30T08:01:27.015121Z"
    }
   },
   "outputs": [],
   "source": [
    "def generateTestData(test_sen, test_ans):\n",
    "    print('organizing test data')\n",
    "    test_x = []\n",
    "    test_y = []\n",
    "    with open('./data/test_q&a.txt', 'w', encoding='utf-8') as f:\n",
    "        temp = 0\n",
    "        for tup in test_sen:\n",
    "            test_x.append(test_sen[tup])\n",
    "            test_y.append(test_ans[tup])\n",
    "            tempstr = ''\n",
    "            for j in range(len(test_ans[tup])):\n",
    "                if test_ans[tup][j] != 0:\n",
    "                    tempstr = tempstr + str(j) + '\\t'  # 获取值为1的index\n",
    "            # 在文件中写入【序号，实体1，实体2，标签位置】\n",
    "            f.write(str(temp) + '\\t' + tup[0] + '\\t' + tup[1] + '\\t' + tempstr + '\\n')\n",
    "            temp += 1\n",
    "    test_x = np.array(test_x)\n",
    "    test_y = np.array(test_y)\n",
    "    np.save('./data/testall_x.npy', test_x)\n",
    "    np.save('./data/testall_y.npy', test_y)\n",
    "    return test_x, test_y"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:01:28.057854Z",
     "start_time": "2020-11-30T08:01:28.039316Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "organizing test data\n"
     ]
    }
   ],
   "source": [
    "test_data, test_label = generateTestData(test_sentences, test_labels)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:01:30.403876Z",
     "start_time": "2020-11-30T08:01:30.391238Z"
    },
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[[[1053, 32, 46],\n",
       "  [4159, 33, 47],\n",
       "  [613, 34, 48],\n",
       "  [11, 35, 49],\n",
       "  [108, 36, 50],\n",
       "  [99, 37, 51],\n",
       "  [311, 38, 52],\n",
       "  [242, 39, 53],\n",
       "  [90, 40, 54],\n",
       "  [229, 41, 55],\n",
       "  [151, 42, 56],\n",
       "  [529, 43, 57],\n",
       "  [33, 44, 58],\n",
       "  [51, 45, 59],\n",
       "  [713, 46, 60],\n",
       "  [1053, 47, 61],\n",
       "  [1803, 48, 62],\n",
       "  [734, 49, 63],\n",
       "  [1, 50, 64],\n",
       "  [723, 51, 65],\n",
       "  [236, 52, 66],\n",
       "  [16115, 53, 67],\n",
       "  [322, 54, 68],\n",
       "  [10, 55, 69],\n",
       "  [90, 56, 70],\n",
       "  [229, 57, 71],\n",
       "  [33, 58, 72],\n",
       "  [324, 59, 73],\n",
       "  [92, 60, 74],\n",
       "  [265, 61, 75],\n",
       "  [1, 62, 76],\n",
       "  [1053, 63, 77],\n",
       "  [4159, 64, 78],\n",
       "  [613, 65, 79],\n",
       "  [11, 66, 80],\n",
       "  [61, 67, 81],\n",
       "  [313, 68, 82],\n",
       "  [45, 69, 83],\n",
       "  [24, 70, 84],\n",
       "  [16115, 71, 85],\n",
       "  [322, 72, 86],\n",
       "  [64, 73, 87],\n",
       "  [996, 74, 88],\n",
       "  [1532, 75, 89],\n",
       "  [16115, 76, 90],\n",
       "  [445, 77, 91],\n",
       "  [82, 78, 92],\n",
       "  [205, 79, 93],\n",
       "  [16116, 80, 94],\n",
       "  [16116, 81, 95],\n",
       "  [16116, 82, 96],\n",
       "  [16116, 83, 97],\n",
       "  [16116, 84, 98],\n",
       "  [16116, 85, 99],\n",
       "  [16116, 86, 100],\n",
       "  [16116, 87, 101],\n",
       "  [16116, 88, 102],\n",
       "  [16116, 89, 103],\n",
       "  [16116, 90, 104],\n",
       "  [16116, 91, 105],\n",
       "  [16116, 92, 106],\n",
       "  [16116, 93, 107],\n",
       "  [16116, 94, 108],\n",
       "  [16116, 95, 109],\n",
       "  [16116, 96, 110],\n",
       "  [16116, 97, 111],\n",
       "  [16116, 98, 112],\n",
       "  [16116, 99, 113],\n",
       "  [16116, 100, 114],\n",
       "  [16116, 101, 115]]]"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "train_data[1]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 将字id，实体距离1，实体距离2数据分离"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:01:35.424477Z",
     "start_time": "2020-11-30T08:01:35.411547Z"
    }
   },
   "outputs": [],
   "source": [
    "def seperate():\n",
    "    print('reading training data')\n",
    "    x_train = np.load('./data/train_x.npy', allow_pickle=True)\n",
    "\n",
    "    train_word = []\n",
    "    train_pos1 = []\n",
    "    train_pos2 = []\n",
    "\n",
    "    print('seprating train data')\n",
    "    for i in range(len(x_train)):\n",
    "        word = []\n",
    "        pos1 = []\n",
    "        pos2 = []\n",
    "        for j in x_train[i]:\n",
    "            temp_word = []\n",
    "            temp_pos1 = []\n",
    "            temp_pos2 = []\n",
    "            for k in j:  # 获取字id，实体距离1，实体距离2\n",
    "                temp_word.append(k[0])\n",
    "                temp_pos1.append(k[1])\n",
    "                temp_pos2.append(k[2])\n",
    "            word.append(temp_word)\n",
    "            pos1.append(temp_pos1)\n",
    "            pos2.append(temp_pos2)\n",
    "        train_word.append(word)\n",
    "        train_pos1.append(pos1)\n",
    "        train_pos2.append(pos2)\n",
    "    \n",
    "    # 将字id，实体距离1，实体距离2分开\n",
    "    train_word = np.array(train_word)\n",
    "    train_pos1 = np.array(train_pos1)\n",
    "    train_pos2 = np.array(train_pos2)\n",
    "    np.save('./data/train_word.npy', train_word)\n",
    "    np.save('./data/train_pos1.npy', train_pos1)\n",
    "    np.save('./data/train_pos2.npy', train_pos2)\n",
    "\n",
    "    print('seperating test all data')\n",
    "    x_test = np.load('./data/testall_x.npy', allow_pickle=True)\n",
    "    test_word = []\n",
    "    test_pos1 = []\n",
    "    test_pos2 = []\n",
    "\n",
    "    for i in range(len(x_test)):\n",
    "        word = []\n",
    "        pos1 = []\n",
    "        pos2 = []\n",
    "        for j in x_test[i]:\n",
    "            temp_word = []\n",
    "            temp_pos1 = []\n",
    "            temp_pos2 = []\n",
    "            for k in j:\n",
    "                temp_word.append(k[0])\n",
    "                temp_pos1.append(k[1])\n",
    "                temp_pos2.append(k[2])\n",
    "            word.append(temp_word)\n",
    "            pos1.append(temp_pos1)\n",
    "            pos2.append(temp_pos2)\n",
    "        test_word.append(word)\n",
    "        test_pos1.append(pos1)\n",
    "        test_pos2.append(pos2)\n",
    "\n",
    "    test_word = np.array(test_word)\n",
    "    test_pos1 = np.array(test_pos1)\n",
    "    test_pos2 = np.array(test_pos2)\n",
    "\n",
    "    np.save('./data/testall_word.npy', test_word)\n",
    "    np.save('./data/testall_pos1.npy', test_pos1)\n",
    "    np.save('./data/testall_pos2.npy', test_pos2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:01:36.696577Z",
     "start_time": "2020-11-30T08:01:36.590630Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "reading training data\n",
      "seprating train data\n",
      "seperating test all data\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/opt/anaconda3/lib/python3.7/site-packages/ipykernel_launcher.py:30: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray\n",
      "/opt/anaconda3/lib/python3.7/site-packages/ipykernel_launcher.py:31: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray\n",
      "/opt/anaconda3/lib/python3.7/site-packages/ipykernel_launcher.py:32: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray\n"
     ]
    }
   ],
   "source": [
    "seperate()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 保存vec中的字"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:01:39.900022Z",
     "start_time": "2020-11-30T08:01:39.893724Z"
    }
   },
   "outputs": [],
   "source": [
    "def get_metadata():\n",
    "    with open('./data/metadata.tsv', 'w', encoding='utf-8') as fwrite:\n",
    "        with open('./origin_data/vec.txt', encoding='utf-8') as f:\n",
    "            f.readline()\n",
    "            while True:\n",
    "                content = f.readline().strip()\n",
    "                if content == '':\n",
    "                    break\n",
    "                name = content.split()[0]\n",
    "                fwrite.write(name + '\\n')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2020-11-30T08:01:40.663256Z",
     "start_time": "2020-11-30T08:01:40.533294Z"
    }
   },
   "outputs": [],
   "source": [
    "get_metadata()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.6"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {
    "height": "calc(100% - 180px)",
    "left": "10px",
    "top": "150px",
    "width": "209px"
   },
   "toc_section_display": true,
   "toc_window_display": false
  },
  "varInspector": {
   "cols": {
    "lenName": 16,
    "lenType": 16,
    "lenVar": 40
   },
   "kernels_config": {
    "python": {
     "delete_cmd_postfix": "",
     "delete_cmd_prefix": "del ",
     "library": "var_list.py",
     "varRefreshCmd": "print(var_dic_list())"
    },
    "r": {
     "delete_cmd_postfix": ") ",
     "delete_cmd_prefix": "rm(",
     "library": "var_list.r",
     "varRefreshCmd": "cat(var_dic_list()) "
    }
   },
   "oldHeight": 122.4,
   "position": {
    "height": "304.4px",
    "left": "1041.8px",
    "right": "20px",
    "top": "3px",
    "width": "446px"
   },
   "types_to_exclude": [
    "module",
    "function",
    "builtin_function_or_method",
    "instance",
    "_Feature"
   ],
   "varInspector_section_display": "block",
   "window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
